package com.sinya.shoppingmall;

/**
 * @author KoizumiSinya
 * @date 2015/12/19
 */
public class MainActivity {}
/*
extends AppCompatActivity {

    private Context context;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        context = this;
    }

    */
/**
     * 测试使用httpUitls 模拟获取订单列表
     *//*

    */
/*private void httpUtils() {
        RequestParams params = new RequestParams();
        params.addHeader("userid", "20428");

        try {
            params.addBodyParameter("type", String.valueOf(2));
            params.addBodyParameter("page", String.valueOf(2));
            params.addBodyParameter("pageNum", String.valueOf(10));
        } catch (Exception e) {
            e.printStackTrace();
        }

        //String url = "http://192.168.1.2:8080/market/login?username=itcast&password=123";
        String url = "http://192.168.1.2:8080/market/orderlist";
        HttpUtils httpUtils = new HttpUtils();
        httpUtils.send(HttpRequest.HttpMethod.POST, url, params, new RequestCallBack<String>() {
            @Override
            public void onSuccess(ResponseInfo<String> responseInfo) {
                LogUtils.I("Sinya", "" + responseInfo.statusCode);

                LogUtils.I("Sinya", responseInfo.result.toString());
            }

            @Override
            public void onFailure(HttpException e, String s) {
                LogUtils.I("Sinya", s);
            }
        });
    }*//*

}
*/
